projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
279cb57
)
ci: Use UTF-8 encoding for the test cover report
author
Emmanuele Bassi
<ebassi@gnome.org>
Sat, 6 Apr 2019 13:20:02 +0000
(14:20 +0100)
committer
Emmanuele Bassi
<ebassi@gnome.org>
Fri, 12 Apr 2019 12:56:17 +0000
(13:56 +0100)
Since we're embedding text coming from the tests into the report, we
should specify an encoding for both the source JSON file and the target
XML file when opening them.
.gitlab-ci/meson-junit-report.py
patch
|
blob
|
history
diff --git
a/.gitlab-ci/meson-junit-report.py
b/.gitlab-ci/meson-junit-report.py
index afc5d53c44beb36f7edb8afa184d5671d1e9abb3..ea492824879475d0c884a3b84f7edc4c97c73a36 100755
(executable)
--- a/
.gitlab-ci/meson-junit-report.py
+++ b/
.gitlab-ci/meson-junit-report.py
@@
-19,11
+19,11
@@
aparser.add_argument('--branch', metavar='NAME',
default='master')
aparser.add_argument('--output', metavar='FILE',
help='The output file, stdout by default',
- type=argparse.FileType('w'),
+ type=argparse.FileType('w'
, encoding='UTF-8'
),
default=sys.stdout)
aparser.add_argument('infile', metavar='FILE',
help='The input testlog.json, stdin by default',
- type=argparse.FileType('r'),
+ type=argparse.FileType('r'
, encoding='UTF-8'
),
default=sys.stdin)
args = aparser.parse_args()